package com.project.bean;

import java.time.LocalDate;

/**
 * @author liuyulai
 * Created with IntelliJ IDEA.
 * Date: 21.7.10
 * Time: 16:20
 * Description: 班级实体bean
 */
public class ClassesBean {
    /**
     * 班级id
     */
    private int classesId;

    /**
     * 班级名称
     */
    private String classesName;

    /**
     * 班级开始时间
     */
    private LocalDate startTime = LocalDate.now();

    /**
     * 班级所属教师
     */
    private String teacher;

    /**
     * 班级当前人数(计算属性)
     * 新建默认为0人
     */
    private int classPeoNum = 0;

    /**
     * 班级所属学校
     */
    private SchoolBean schoolBean;


    public ClassesBean() {
    }

    public ClassesBean(String classesName, String teacher, int schoolBean) {
        this.classesName = classesName;
        this.teacher = teacher;
        this.schoolBean = new SchoolBean();
        this.schoolBean.setSchoolId(schoolBean);
    }

    public int getClassesId() {
        return classesId;
    }

    public void setClassesId(int classesId) {
        this.classesId = classesId;
    }

    public String getClassesName() {
        return classesName;
    }

    public void setClassesName(String classesName) {
        this.classesName = classesName;
    }

    public LocalDate getStartTime() {
        return startTime;
    }

    public void setStartTime(LocalDate startTime) {
        this.startTime = startTime;
    }

    public String getTeacher() {
        return teacher;
    }

    public void setTeacher(String teacher) {
        this.teacher = teacher;
    }

    public SchoolBean getSchoolBean() {
        return schoolBean;
    }

    public void setSchoolBean(SchoolBean schoolBean) {
        this.schoolBean = schoolBean;
    }

    public int getClassPeoNum() {
        return classPeoNum;
    }

    public void setClassPeoNum(int classPeoNum) {
        this.classPeoNum = classPeoNum;
    }

    @Override
    public String toString() {
        return "ClassesBean{" +
                "classesId=" + classesId +
                ", classesName='" + classesName + '\'' +
                ", startTime=" + startTime +
                ", teacher='" + teacher + '\'' +
                ", classPeoNum=" + classPeoNum +
                ", schoolBean=" + schoolBean +
                '}';
    }
}
